package br.com.canvasForAll.model.generic.repository;

import java.util.List;
import java.util.Map;

import javax.ejb.Local;

@Local
public interface GenericCrudRepository<T> {

	void criar(T entity) throws Exception;

	void deletar(T entity) throws Exception;

	T atualizar(T entity) throws Exception;

	T obterId(Long entityId) throws Exception;

	List<T> obterTodos() throws Exception;

	List<T> obterExemplo(String namedQuery, Map<String, Object> parametros) throws Exception;

}
